package com.train.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.train.common.annotation.Excel;
import com.train.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 计划项目对象 user_plan_item
 *
 * @author train
 * @date 2025-11-15
 */
@Data
public class UserPlanItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目ID */
    @TableId(type = IdType.AUTO)
    private Long itemId;

    /** 计划ID */
    @Excel(name = "计划ID")
    private Long planId;

    /** 项目类型(1:课程 2:视频集) */
    @Excel(name = "项目类型(1:课程 2:视频集)")
    private String itemType;

    /** 项目ID(课程ID或视频集ID) */
    @Excel(name = "项目ID(课程ID或视频集ID)")
    private Long itemIdRef;

    /** 项目时长(秒) */
    @Excel(name = "项目时长(秒)")
    private Long itemDuration;

    /** 已完成时长(秒) */
    @Excel(name = "已完成时长(秒)")
    private Long completedDuration;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    private Date createTime;
    /**
     * 用户ID
     */
    private Long userId;


}
